﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
using DTO;

namespace BUS
{
    public class ThietBiThongDungBUS
    {
        public static DataTable LayDSTBTDTheoMa(int ma)
        {
            return ThietBiThongDungDAO.LayDSTBTDTheoMa(ma);
        }

        public static DataTable DanhSachTBTD()
        {
            return ThietBiThongDungDAO.DanhSachTBTD();
        }

        public static int ThemTBTD(ThietBiThongDungDTO tbtd)
        {
            return ThietBiThongDungDAO.ThemTBTD(tbtd);
        }

        public static int CapNhatTBTD(ThietBiThongDungDTO tbtd)
        {
            return ThietBiThongDungDAO.CapNhatTBTD(tbtd);
        }

        public static int KiemTraTBTD(string tbtd)
        {
            return ThietBiThongDungDAO.KiemTraThietBi(tbtd);
        }
    }
}
